﻿<controls:ChildWindow
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="DBSchemaViewer.FrontEnd.Main.AppUserControls.ExportWindow"
           Width="300" Height="200" 
           Title="Export Image Window" mc:Ignorable="d">
    <Canvas>
        <Grid Margin="2" Canvas.Top="0" Canvas.Left="0" x:Name="grWindow">
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="30"/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <Border BorderBrush="Black" Background="White" CornerRadius="5" BorderThickness="1"  Grid.Row="0" Padding="5">
                <StackPanel Orientation="Vertical">
                    <TextBlock Text="Exit format:" Margin="5,5,0,5"></TextBlock>
                    <RadioButton GroupName="ExrpotTypeGroup" x:Name="rdPng" Content="PNG" IsChecked="true" Margin="10,0,0,0"/>
                    <RadioButton GroupName="ExrpotTypeGroup" x:Name="rdJpeg" Content="JPEG" Margin="10,0,0,0"/>
                </StackPanel>
            </Border>
            <CheckBox x:Name="chkUnmarkSelectedObject"  HorizontalAlignment="Right" Content="Unmark selected object" IsChecked="true" Grid.Row="1" Margin="0,5,0,0"/>
            <StackPanel Orientation="Horizontal" Grid.Row="4">
                <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Left" Margin="10,0,90,0"/>
                <Button x:Name="OKButton" Content="Export" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" />
            </StackPanel>
        </Grid>
        <Border Canvas.Top="0" Canvas.Left="0" Width="282" Height="165" x:Name="bProgressBar" Background="#9C050D53" Visibility="Collapsed">
            <TextBlock Text="Please, wait while the file is generated" Height="30" Foreground="White" FontWeight="bold" Margin="0,63,0,62" FontSize="12" HorizontalAlignment="Center"/>
        </Border>
    </Canvas>
</controls:ChildWindow>